<?php
#基础函数
include_once('_path.php');
include_once("../includes/init.php");
#样式
$css = array();
$js = array();
#菜单
$menu = "site";
$sql = "SELECT * FROM region";
$rsc = $database->queryArray($sql);
include_once("../layout/_header.php");
?>
            <div class="main">
       		<div class="traininc-nav-list">
				<ul>
					<li class="selected"><a href="javascript:;">网点列表</a></li>
					<li><a href="edit.php?action=add.form">新增网点</a></li>

				</ul>
			</div>
			<div class="box-con">
			<table class="table-blue">
				<thead>
					<tr>
						<th>编号</th>
						<th>网点名称</th>
						<th>省份</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					                                <?
                                for($i=0;$i<sizeof($rsc);$i++){
                                $r = $rsc[$i];
                                $j = 1;
                                ?>
                                    <tr <?=iif($j%2==0, 'class="odd"')?>>
						<td><?=$r['id']?></td>
						<td><?=$r['name']?></td>
						<td><?=$r['province']?></td>
						<td><a href="edit.php?action=members.form&id=<?= $r['id'] ?>">网点会员</a> | <a href="edit.php?action=members.view&id=<?= $r['id'] ?>">网点企业</a> | <a href="edit.php?action=edit.form&id=<?= $r['id'] ?>">编辑</a> | <a href="edit.php?action=delete.do&id=<?= $r['id'] ?>">删除</a></td>
					</tr>
                                <?
                                $j++;
                                }
                                ?>
				</tbody>
			</table>

			</div>
        </div>
<?
include_once("../layout/_footer.php");
?>